package com.jiandian.service;

import com.jiandian.entity.Dict;
import com.jiandian.page.PageInfo;

import java.util.List;

/**
 * 字典
 *
 * @author Houqi Fu
 * @date 2019/01/31
 */
public interface DictService {

    Dict add(Dict record);

    Dict update(Dict record);

    Dict findById(Integer id);

    List<Dict> findAll(PageInfo pageInfo);

    int selectCount(PageInfo pageInfo);

    int batchInsert(List<Dict> list);

    List<Dict> batchQueryByIds(List<Integer> ids);

    int delete(Integer id);

    int delete(Dict record);

    int batchDeleteById(List<Integer> ids);

    PageInfo getPage(Dict whereEntity, PageInfo pageInfo);

    Dict findByKey(String key);

    int updateByKey(Dict dict);

}
